<!DOCTYPE html>
<html>

<head>
    <!-- 有一个父div，宽度是100%，父div下面有3个子div，等宽，平分父div宽度 -->
    <meta charset="utf-8">
    <title>本地flex测试</title>
    <style>
        .box {
            display: flex;
            border: 1px solid #f99;

            height: 50px;
            line-height: 50px;

            margin-bottom: 20px;

        }


        .left{
            background-color: aquamarine;
        }

        .right{
            background-color: gold;
        }
    </style>
</head>

<body>

    <div class="box">
        <div class="left">
            <input />左1
            <input />左2
        </div>
        
        <div class="center" style="background-color: #895ed4;flex: 1;">
        </div>

        <div class="right">
            <input />右1
            <input />右2
            <input />右3
            <input />右4
            <input />右5
        </div>
    </div>

    <div class="box">
        <div class="left" style="flex: 1">
            <input />左1
            <input />左2
        </div>

        <div class="right">
            <input />右1
            <input />右2
            <input />右3
            <input />右4
            <input />右5
        </div>
    </div>

    <div class="box">
        <div class="left">
            <input />左1
            <input />左2
        </div>

        <div class="right" style="flex: 1;text-align: right">
            <input />右1
            <input />右2
            <input />右3
            <input />右4
            <input />右5
        </div>
    </div>

    <div class="box">
        <div class="left">
            <input />左1
            <input />左2
        </div>

        <div class="right" style="margin-left: auto">
            <input />右1
            <input />右2
            <input />右3
            <input />右4
            <input />右5
        </div>
    </div>


</body>

</html>